package test.func;

import java.lang.reflect.Method;
import java.util.Collections;
import java.util.List;

/**
 * @className: SqlWrapper
 * @author: Simon
 * @description: TODO
 * @date: 2024/1/25 17:18
 * @version: 1.0
 */
public class SqlWrapper <T>{

    private Class<T> tClass;
    public SqlWrapper(Class<T> tClass){
        this.tClass = tClass;
    }

    public SqlWrapper eq(OkSqlFunction<T,?> keyFunc,Object... val)   {
        Class cls = keyFunc.getClass();
        Method method = null;
        try {
            method = cls.getDeclaredMethod("writeReplace", new Class[0]);
        } catch (NoSuchMethodException e) {
            throw new RuntimeException(e);
        }
        System.out.println(method);
        return this;
    }

    public List list(){
        System.out.println("#####run list method.");
        return Collections.emptyList();
    }
}
